package com.burgeon.backend.SHOPBACKEND.mappers;

import com.burgeon.backend.SHOPBACKEND.entity.Activity;
import com.burgeon.backend.SHOPBACKEND.entity.SevenDaysReturn;
import com.burgeon.backend.SHOPBACKEND.entity.mailActivity.Gabalnara;

import java.util.ArrayList;
import java.util.List;

public interface BackendActivityMapper {

    Integer SevenDaysReturnSet(String type, String state, String token);

    SevenDaysReturn SevenDaysReturnData(String token);

    //下架活动到期商品
    Integer soldOutGoodsByActivityID(String id);

    //更改活动id和名称
    Integer upGoodsActivity(String id,String name,String aid);

    //同过活动id 查商品id
    List<String> findGoodsIdByAid(String id);

    Integer upMailActivity(Gabalnara gabalnara);

    Integer createMailActivity(Gabalnara gabalnara);

    Gabalnara findMailActivityData(String token);

    List<Activity> GetAppActivity(String token);

    Activity FindAppActivityByID(String id);

    Integer createActivity(Activity activity);

    Integer upActivity(Activity activity);

    Integer delActivity(String id);

    //查询所有客户的活动
    ArrayList<Activity> FindShopActivity();
    Integer upActivityIsUse(String id);

}
